#include "WiiRemoteDeviceModule.h"

TSharedPtr<IInputDevice> FWiiRemoteDeviceModule::CreateInputDevice(const TSharedRef< FGenericApplicationMessageHandler >& InMessageHandler)
{
    WiiDevice = MakeShareable(new FWiiRemoteDevice(InMessageHandler));

    return WiiDevice;
}

void FWiiRemoteDeviceModule::ShutdownModule()
{
    if (WiiDevice.IsValid())
        WiiDevice = nullptr;
}

#undef LOCTEXT_NAMESPACE

IMPLEMENT_MODULE(FWiiRemoteDeviceModule, WiiRemoteDevice)